//
//  PGZWindow.h
//  iMAL
//
//  Created by Stefano Pigozzi on 2/4/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>


// Subclass of NSWindow with convenince method to set the Resizability of the 
// NSWindow. Note that it has to be set as resizable in Interface Builder in order
// to work properly.
@interface PGZWindow : NSWindow {

	IBOutlet NSScrollView * scrollView;
	NSPoint pos;
	
}

@property (retain) IBOutlet NSScrollView * scrollView;

- (void)windowDidResize:(NSNotification *)notification;
- (NSSize)windowWillResize:(NSWindow *) window toSize:(NSSize)newSize;
- (BOOL)windowShouldZoom:(NSWindow *)window toFrame:(NSRect)newFrame;
- (void)setResizable: (BOOL)resizable;

@end
